<script setup>
import request from '@/utils/axios';
import { onMounted, ref } from 'vue'
const myTeamList = ref([])
onMounted(async () => {
    const res = await request.get('/team/list/my/create')
    res.data.map((team) => {
        team.avatarUrl = "data:image/png;base64," + team.avatarUrl
        return team
    })
    if (res.code === 0) {
        myTeamList.value = res.data
    } else {
        showFailToast('获取队伍信息失败！请刷新重试')
    }
})
</script>
<template>

    <van-empty v-if="!myTeamList || myTeamList.length < 1" description="数据为空" />
    <template v-else>
        <TeamCardList :teamList="myTeamList"></TeamCardList>
    </template>

</template>

<style scoped lang='scss'></style>